<script setup lang="ts">

import Game from "@/vueTest/c/09_slot_作用域插槽/Game.vue";
</script>

<template>
<h2>父组件</h2>
  <Game>
    <template v-slot="params">
      <ul>
        <li v-for="g in params.youxi" :key="g.id">{{g.name}}</li>
      </ul>
    </template>
  </Game>
  <Game>
    <template v-slot="params">
      <ol>
        <li v-for="g in params.youxi" :key="g.id">{{g.name}}</li>
      </ol>
    </template>
  </Game>
  <Game>
    <template v-slot="{youxi}">
      <h2 v-for="g in youxi" :key="g.id">{{g.name}}</h2>
    </template>
  </Game>
</template>

<style scoped>

</style>